package com.xuyh.pdf.utils.ttjspider;

import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author xuyh0817
 * @version 1.0.0
 * @email xuyh0817@foxmail.com
 * @date 2024/9/23 12:27
 * @doc
 * @website
 * @description todo
 */
@Data
public class Article {
    // 文章状态 1：未发布  2：已发布
    public static final Integer STATUS_DRAFT = 1;
    public static final Integer STATUS_PUBLISHED = 2;

    // 数据过滤 0：否 1：是
    public static final Integer FILTER_NO = 0;
    public static final Integer FILTER_YES = 1;

    // 文章类型 0:html 1:pdf 2:ofd
    public static final Integer TYPE_HTML = 0;

    private Long id;
    /**
     * 类型
     * 枚举 cms_article_type 0:html 1:pdf 2:ofd
     */
    private Integer type = TYPE_HTML;
    /**
     * 栏目
     */
    private Long categoryId;
    /**
     * 标题
     */
    private String title;
    /**
     * 内容
     */
    private String content;
    /**
     * 浏览数
     */
    private Integer viewCount;
    /**
     * 评论数
     */
    private Integer commentCount = 0;
    /**
     * 评论
     * <p>
     * 枚举 common_status
     */
    private Integer isComment = 0;
    /**
     * 置顶
     * <p>
     * 枚举 common_status
     */
    private Integer isTop = 0;
    /**
     * 来源
     */
    private String source;
    /**
     * 状态
     * <p>
     * 枚举 cms_article_status
     */
    private Integer status = STATUS_DRAFT;

    /**
     * 数据过滤  0： 否  1：是
     */
    private Integer dataFilter = FILTER_NO;
    /**
     * 发布时间
     */
    private Date publishTime;
    /**
     * 发布人id
     */
    private Long publishUserId;
    /**
     * 发布人
     */
    private String publishUser;
    /**
     * 备注
     */
    private String remark;
    /**
     * 部门id
     */
    private Long deptId;
    /**
     * 部门名称
     */
    private String deptName;

    private Long tenantId;

    private Date createTime;

    private Date updateTime;

    private String creator;

    private String updater;

    private Integer deleted = 0;
    /**
     * 图片
     */
    private List<Attachment> images = new ArrayList<>();
    /**
     * 附件
     */
    private List<Attachment> attachments = new ArrayList<>();

}
